import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import { HashRouter } from 'react-router-dom'

// 初始化函数
const initializeApp = async () => {
  const normalRoot = createRootView();
  normalRoot.render(
    <HashRouter>
      <App />
    </HashRouter>
  );
};

const createRootView = () => {
  return ReactDOM.createRoot(document.getElementById('root'))
}

initializeApp();

